<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-
scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../css/y_index.css" />
    <style>
    .f25 {
        font-size: .50rem;
    }

    .banner {
        position: relative;
        padding: .4rem .2rem;
        color: #fff;
    }

    .lBox {
        background: url(../img/y_circle.png);
        -webkit-background-size: 100% 100%;
        background-size: 100% 100%;
        width: 2.5rem;
        height: 2.5rem;
    }

    .list {
        width: 50%;
        padding: .4rem 0;
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    </style>
</head>

<body>
    <div class="bigBox bw">
        <div class="container">
            <!-- banner -->
            <div class="banner flex_a flex_sa b_diy" style="overflow: hidden;">
                <div class="lBox flex_aj flex_column">
                    <li><span class="f25 incomeTotal"><!-- 1432.25 --></span>元</li>
                    <li>昨日总收益</li>
                </div>
                <div class="rBox">
                    <li>昨日总消耗：<span class="f25 paperTotal"><!-- 3000 --></span> </li>
                    <li class="mt20 deviceTotal">
                        <!-- 总设备数：1000台 -->
                    </li>
                    <li class="mt20 onlineTotal">
                        <!-- 在线设备数：360台 -->
                    </li>
                </div>
            </div>
            <ul class="flex_aj r_wrap">
                <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_manage.html'">
                    <img src="../img/y_1.png" style="width: 1.01rem;height: .99rem;" />
                    <p class="mt20">设备管理</p>
                </li>
                <li class="list flex_a flex_column" onclick="location.href='ser_onlineBooking.html'">
                    <img src="../img/y_2.png" style="width: 1.01rem;height: .99rem;" />
                    <p class="mt20">在线订货</p>
                </li>
                <li class="list flex_a flex_column" onclick="location.href='ser_wechatMg.html?type=3'">
                    <img src="../img/y_3.png" style="width: 1.01rem;height: .99rem;" />
                    <p class="mt20">公众号管理</p>
                </li>
                <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_center.html'">
                    <img src="../img/y_4.png" style="width: 1.01rem;height: .99rem;" />
                    <p class="mt20">我的账号</p>
                </li>
            </ul>
        </div>
        <!-- 列表详情 -->
        <ul class="mt20">
        </ul>
    </div>
</body>

</html>
<script src="../js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/dlc.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.0/alipayjsapi.inc.min.js"></script>
<!--公司的常用函数封装-->
<script type="text/javascript">
dlc_request('/api/index/getIndexTotal', { agentId: getLocalData('fd_id') }, function(res) {
    console.log(res);
    if (res.code == 1) {
        $('.deviceTotal').text("总设备数：" + res.data.deviceTotal + "台"); //总设备数
        $('.onlineTotal').text("在线设备数：" + res.data.onlineTotal + "台"); //昨天总收益
        $('.incomeTotal').text(res.data.incomeTotal); //在线设备数
        $('.paperTotal').text(res.data.paperTotal); //昨天总消耗
    } else {
        dlctipbox.show(res.msg);
    }
})
</script>